<style>
<!--
	.nav-tabs {
		margin-bottom: 0px;
	}
-->
</style>
<div ng-show="!selectAssignee">
    <tabset>
        <tab>
            <tab-heading>
                <i class="icon-doc"></i> 表单
            </tab-heading>
            <form action="#" id="properties-form" class="form-horizontal  w5c-form" w5c-form-validate name="taskValidateForm" style="margin-top: 0px;">
                <!-- 外置表单-->
                <div class="form-body" ng-if="key" style="border-width: 1px; border: 1px solid lightgray;margin: 0px 0px 15px;padding: 10px;">
                    <div data-ng-include="key">
                    </div>
                </div>
            </form>
        </tab>
        <tab>
            <tab-heading>
                <i class="icon-bar-chart"></i> 流程图
            </tab-heading>
            <iframe id="bpm-process" ng-src="{{processPath}}" frameborder="0" style="width: 100%;"></iframe>
        </tab>
        <tab ng-if="processInstanceId != ''">
            <tab-heading>
                <i class="icon-list"></i> 流程轨迹
            </tab-heading>
            	<div class="portlet" >
			        <div class="portlet-title">
			            <div class="caption">
			            		轨迹列表
			            </div>
			        </div>
			        <div class="portlet-body">
			            <table  ed-grid="processTrackGrid" class="table table-striped table-bordered table-advance table-hover"
			                   ed-url="bpm/process/{{processInstanceId}}/track.do" ed-model="actHis" width="100%">
			                <thead>
			                <tr>
			                    <th ed-data="_index"></th>
			                    <th ed-data="actName">流程环节</th>
			                    <th ed-data="startTime">开始时间</th>
			                    <th ed-data="endTime">办理时间</th>
			                    <th ed-data="comment">办理意见</th>
			                </tr>
			                </thead>
            			</table>
			        </div>
			    </div>
        </tab>

        <div class="actions" style="padding-top: 3px;float: right;padding-right: 20px;">
            <a class="btn btn-circle btn-icon-only btn-default" href="javascript:;" ng-click="cancel();">
                <i class="icon-action-undo"></i>
            </a>
        </div>
    </tabset>
</div>



<!-- BEGIN MAIN JS -->
<script>
    $('#bpm-process').height($('.page-content-wrapper').height() - 100);
	
	

</script>
<!-- END MAIN JS -->